from bbs import views
from django.conf.urls import patterns, url

urlpatterns = patterns(
                        '',
                        url(r'^index/$',views.index_view,name='index'),
                        url(r'^regist/$',views.regist_view,name='regist'),
                        url(r'^$', 'django.contrib.auth.views.login', {'template_name': 'bbs/login.html'},
                           name='login'),
                        # url(r'^logout/$','django.contrib.auth.views.logout',{'template_name':'bbs/index.html'},name='logout'),
                        url(r'^logout/$',views.logout_view,name='logout'),
                        url(r'userinfo/$',views.userinfo_view,name='userinfo'),
                        url(r'^user/$',views.get_user_name),
                        url(r'^portrait/$',views.portrait_upload),
                        url(r'^signature/img',views.userinfo_signature_imgupload),
                        url(r'^messages/',views.message_list_view,name='message_list'),
                        url(r'^topic/$',views.topic_create_view,name='topic_create'),
                        url(r'^topics/(?P<pk>\d+)/$',views.topic_list_view,name='topic_list'),
                        url(r'^topic/(?P<pk>\d+)/$',views.topic_show_view,name='topic_show')
                       )

__author__ = 'Administrator'

